#include "include.h"

#ifdef RUN_TESTS

#include "app/appmain.h"
#include "gui/graphicview.h"
#include "actions/action.h"
#include "actions/actioninvoker.h"

#include "compile/debug_memoryleaks"
using namespace gui;
using namespace app;
using namespace model;
using namespace actions;


BOOST_AUTO_TEST_SUITE(ACTIONS_TEST_SUITE);

struct test_actions_data
{
    app::AppMain appmain;
    GraphicView*  view;
    ActionInvoker*  invoker;

    test_actions_data()
    {
        int argc=0;
        appmain.init(argc,NULL);

        view = appmain.getGui().getGraphicView();
        invoker = &appmain.getActionInvoker();
    }

    ~test_actions_data()
    {
        appmain.done();
    }
};

BOOST_AUTO_TEST_CASE( call_action )
{
	test_actions_data data;

	BOOST_TEST_MESSAGE( "Call About action" );

	data.invoker->callAbout();


}


BOOST_AUTO_TEST_SUITE_END();


#endif

